package com.lz.sports.bean

import com.google.gson.annotations.Expose
import com.lz.library.proguard.IProguardField

//校验模式详情
class VerifyModelDetail : IProguardField {

    //检录方式
    @Expose
    var inspectModels: ArrayList<CommonModel>? = null

    //签到方式
    @Expose
    var signInModels: ArrayList<CommonModel>? = null

    //查询方式
    @Expose
    var queryModels: ArrayList<CommonModel>? = null

    //成绩确认方式
    @Expose
    var sureModels: ArrayList<CommonModel>? = null

    fun isInvalid(): Boolean = isEmpty(inspectModels) || isEmpty(signInModels) || isEmpty(queryModels) || isEmpty(sureModels)

    private fun isEmpty(list: List<CommonModel>?): Boolean = list == null || list.isEmpty()
}